﻿using Shop.Core.Share;
using Shop.Model.Dto.Admin.Jur;
using Shop.Model.View.Admin.Jur;
using Shop.Model.View.Admin.JurUser;

namespace Shop.IServices.Admin;

/// <summary>
/// 登录服务
/// </summary>
public interface IAccountService: IAppService
{
    /// <summary>
    /// 管理员登录
    /// </summary>
    /// <param name="dto"></param>
    /// <returns></returns>
    Task<AppResult<AdminLoginVo>> AdminLogin(AdminLoginDto dto);

    /// <summary>
    /// 获取管理员信息
    /// </summary>
    /// <param name="uId"></param>
    /// <returns></returns>
    AppResult<AdminInfoVo> AdminInfo(long uId);
}